package com.train.pay.controller;

import com.train.pay.compoent.FeignTrain;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(path = {"/feign"})
public class FeignTrainController {
    @Resource
    FeignTrain feignTrain;

    @RequestMapping(method = {RequestMethod.GET})
    public Object test(){
        return feignTrain.hi();
    }
}
